﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPhanCong.ascx.cs"
    Inherits="Web.giamthi.UCPhanCong" %>
<p>
    <br />
</p>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
    BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"
    CellPadding="4" GridLines="Horizontal" 
    onpageindexchanging="GridView1_PageIndexChanging" 
    onselectedindexchanging="GridView1_SelectedIndexChanging" 
    onrowdeleting="GridView1_RowDeleting" DataKeyNames="PCID" 
    onrowdatabound="GridView1_RowDataBound">
    <Columns>
        <asp:BoundField DataField="pcid" HeaderText="PCID" />
         <asp:TemplateField HeaderText="Lớp">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("LopHoc.TenLop") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
          <asp:TemplateField HeaderText="Môn Học">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("MonHoc.TenMH") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="magv" HeaderText="Mã Giáo Viên" />
        <asp:TemplateField HeaderText="Tên Giáo Viên">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiaoVien.TenGV") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="ngaybatdau" dataformatstring="{0:MM/dd/yyyy}" HeaderText="Ngày bắt đầu" />
        <asp:BoundField DataField="tongsotiet" HeaderText="Tổng số tiết" />
         <asp:BoundField DataField="sotiet" HeaderText="Số tiết / Ngày" />
         <asp:TemplateField HeaderText="Giờ Học">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("giobatdau") + "-" +Eval("gioketthuc") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
          <asp:CommandField ShowSelectButton="True" SelectText="Sửa" />
        <asp:CommandField ShowDeleteButton="True" DeleteText="Xóa" />
    </Columns>
    <FooterStyle BackColor="White" ForeColor="#333333" />
    <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F7F7F7" />
    <SortedAscendingHeaderStyle BackColor="#487575" />
    <SortedDescendingCellStyle BackColor="#E5E5E5" />
    <SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>
